/*
 * *****************************************************************************
 *  Copyright ( c ) 2019 huibur Inc. All Rights Reserved.
 *
 *  This software is the confidential and proprietary information of Huibur Inc
 *  (*Confidential Information*). You shall not disclose such Confidential Information
 *  and shall use it only in accordance with the terms of the license agreement
 *  you entered into with Huibur or a Huibur authorized
 *  reseller (the "License Agreement*).
 *  ******************************************************************************
 */

package com.huibur.devicecheck.model.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;

/*******************************************************
* Title: CheckLocationPO.java
* Description:
* @author baiqingshuo
* @date 2021/10/11
* @version 1.0
*******************************************************/

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@TableName("check_location")
public class CheckLocationPO {

    /**
     * 主键id
     */
    @TableId(value = "id" ,type = IdType.AUTO)
    private Long id;

    /**
     * 父级节点，顶级节点的父节点默认为0
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 当前节点名称
     */
    @TableField("name")
    private String name;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 排序
     */
    @TableField("seq")
    private Integer seq;

    /**
     * 是否有子集：0:有 1:无
     */
    @TableField("is_subset")
    private Boolean isSubset;

    /**
     * 0: 正常 1：删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField("create_at")
    private Timestamp createAt;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_at")
    private Timestamp updateAt;

    @TableField("update_by")
    private Long updateBy;

    /**
     * 0:正常 1:停用
     */
    @TableField("status")
    private Integer status;

    /**
     * 路由
     */
    @TableField("route")
    private String route;

    @TableField(exist = false)
    private String parentName;
}
